package com.szholly.plug.safe.login;

/**
 * 定义登录参数类
 */
public class LoginParameter {
	private String loginUrl="com/itfreer/safe/view/login";
	private String loginOutUrl="com/itfreer/safe/view/login";
	private boolean onlyUser = false;
	
	// 锁定1小时
	private int lockHour =1;
	// 5分钟内失败多少次锁定帐号
	private int loginMinute = 5;
	// 5分钟内失败3次锁定帐号
	private int loginTimes = 3;
	
	public int getLockHour() {
		return lockHour;
	}

	public void setLockHour(int lockHour) {
		this.lockHour = lockHour;
	}

	public int getLoginMinute() {
		return loginMinute;
	}

	public void setLoginMinute(int loginMinute) {
		this.loginMinute = loginMinute;
	}

	public int getLoginTimes() {
		return loginTimes;
	}

	public void setLoginTimes(int loginTimes) {
		this.loginTimes = loginTimes;
	}
	
	/**
	 * 登录用户是否唯一
	 * @return
	 */
	public boolean isOnlyUser() {
		return onlyUser;
	}

	/**
	 * 登录用户是否唯一
	 * @param onlyUser
	 */
	public void setOnlyUser(boolean onlyUser) {
		this.onlyUser = onlyUser;
	}

	/**
	 * 设置登录地址
	 * 
	 * @param loginUrl
	 */
	public void setLoginUrl(String loginUrl) {
		this.loginUrl = loginUrl;
	}
	
	public String getLoginUrl(){
		return loginUrl;
	}

	/**
	 * 设置退出后的地址
	 * 
	 * @param loginOutUrl
	 */
	public void setLoginOutUrl(String loginOutUrl) {
		this.loginOutUrl = loginOutUrl;
	}
	
	public String getLoginOutUrl(){
		return loginOutUrl;
	}
}